package com.lvchenglong.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @GetMapping("/")
    public String index() {
        return "hello";
    }

    @GetMapping("/name")
    public Person name() {
        Person person = new Person();
        person.setAge(11);
        person.setName("lvchenglng");
        return person;
    }
}
